package com.itheima02;

import java.util.concurrent.CountDownLatch;

public class MotherDownLatchDemo extends Thread {
    private CountDownLatch count;

    public MotherDownLatchDemo(CountDownLatch countDownLatch) {
        this.count = countDownLatch;
    }

    @Override
    public void run() {
        try {
            count.await();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        System.out.println("妈妈收拾碗筷");
    }
}
